<?php
define('APP_PATH', dirname(__FILE__));
define('TPL_PATH', APP_PATH.'/templates/');
$path = empty($_GET['p']) ? 'index' : $_GET['p'];

$tpl = TPL_PATH.$path.'.php';
file_exists($tpl) ? include $tpl : '';
?>
